# -*- coding: utf-8 -*-
'''
Created on May 18, 2009

@author: rifiorelli

Django settings for my_blog project.
'''
import os
PROJECT_ROOT_PATH = os.path.dirname(os.path.abspath(__file__))
PROJECT_ROOT_URL = 'http://localhost:8000/'

LOCAL = True
DEBUG = True

TEMPLATE_DEBUG = DEBUG

#aqui vc tem os dados do banco de dados,

#user='root', db='mysql_metogreen', passwd='cad123', host='localhost'

#DATABASE_ENGINE = 'sqlite3'           # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
#DATABASE_NAME = os.path.join(PROJECT_ROOT_PATH,'db/metogreen.db')             # Or path to database file if using sqlite3.
DATABASE_ENGINE = 'mysql'
DATABASE_NAME = 'mysql_metogreen'
DATABASE_USER = 'root'             # Not used with sqlite3.
DATABASE_PASSWORD = 'cad123'         # Not used with sqlite3.
DATABASE_HOST = 'localhost'             # Set to empty string for localhost. Not used with sqlite3.
DATABASE_PORT = ''             # Set to empty string for default. Not used with sqlite3.

USE_I18N = False

# Absolute path to the directory that holds media.
# Example: "/home/media/media.lawrence.com/"
MEDIA_ROOT = os.path.join(PROJECT_ROOT_PATH, 'media')

# URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash if there is a path component (optional in other cases).
# Examples: "http://media.lawrence.com", "http://example.com/media/"
MEDIA_URL = '/media/'

# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
# trailing slash.
# Examples: "http://foo.com/media/", "/media/".
ADMIN_MEDIA_PREFIX = '/admin_media/'

TEMPLATE_DIRS = (
    # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
    # Always use forward slashes, even on Windows.
    # Don't forget to use absolute paths, not relative paths.
    os.path.join(PROJECT_ROOT_PATH,'templates'),
)
